﻿/**
* File: XmglxmxxEditModel.cs
* Author: 汪杰
* Create Time:2025/2/21 13:53:00
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JSLCloud.Attributes;
using JSLCloud.Models;
using JSLCloud.DBModel;

namespace JSLCloud.App.Models.Xmglxmxx
{
    /// <summary>
    /// xm_gl_xmxx Edit Model
    /// </summary>
    [UseAutoMapper(typeof(XmglxmxxDbModel))]
    public class XmglxmxxEditModel
    {
        /// <summary>
        /// ID
        /// </summary>
        [Required]
        public int ID { get; set; }
        
        /// <summary>
        /// 修改人ID
        /// </summary>
        public int? Updateid { get; set; }
        
        /// <summary>
        /// 修改人姓名
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Updatename { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? Updatetime { get; set; }
        
        /// <summary>
        /// 删除标识 0未删除 1已删除
        /// </summary>
        [Required]
        public int Deleteflag { get; set; }
        
        /// <summary>
        /// 客户ID
        /// </summary>
        [Required]
        public int Khid { get; set; }
        
        /// <summary>
        /// 体系ID
        /// </summary>
        [Required]
        public int Txid { get; set; }
        
        /// <summary>
        /// ERP编号
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Erpbh { get; set; }
        
        /// <summary>
        /// 市县区
        /// </summary>
        [StringLength(maximumLength:100)]
        public string Sxq { get; set; }
        
        /// <summary>
        /// 审核类型  初审 再认证 监督一 监督二
        /// </summary>
        [Required]
        [StringLength(maximumLength:100)]
        public string Shlx { get; set; }
        
        /// <summary>
        /// 体系人数
        /// </summary>
        [Required]
        public int Txrs { get; set; }
        
        /// <summary>
        /// 认证范围
        /// </summary>
        [Required]
        [StringLength(maximumLength:2000)]
        public string Rzfw { get; set; }
        
        /// <summary>
        /// 初审金额
        /// </summary>
        [Required]
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal Csje { get; set; }
        
        /// <summary>
        /// 监审金额
        /// </summary>
        [Required]
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal Jsje { get; set; }

        /// <summary>
        /// 合同金额
        /// </summary>
        [Required]
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal Htje { get; set; }

        /// <summary>
        /// 合同签单日期
        /// </summary>
        [Required]
        public DateTime Htqdrq { get; set; }
        
        /// <summary>
        /// 备注说明
        /// </summary>
        [StringLength(maximumLength:500)]
        public string Bz { get; set; }

        /// <summary>
        /// 是否多场所
        /// </summary>
        public string Sfdcs { get; set; }
        /// <summary>
        /// 多场所类别
        /// </summary>
        public string Dcslb { get; set; }
        
        /// <summary>
        /// 合同类型
        /// </summary>
        public string Htlx { get; set; }
        /// <summary>
        /// 合同地址
        /// </summary>
        public string Htdz { get; set; }        
        /// <summary>
        /// 省份
        /// </summary>
        public string Sf { get; set; }
        /// <summary>
        /// 渠道ID
        /// </summary>
        public int? Qdid { get; set; }

        /// <summary>
        /// 流程模板
        /// </summary>
        public int Lcmb { get; set; }

        /// <summary>
        /// 多体系
        /// </summary>
        public string Txids { get; set; }
    }
}
